package obs.service.impl;

import java.sql.SQLException;

import obs.dao.UserDao;
import obs.service.LoginService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Transactional
public class LoginServiceImpl implements LoginService{

    @Autowired
    private UserDao userDao;

    @Override
    public boolean login(String uid, String pwd) throws SQLException {
        return userDao.login(uid, pwd);
    }
}
